package nku.csc364;

import java.io.*;

public class test{
	public static void main(String... args)throws IOException{
		 FileWriter outFile = new FileWriter("test.txt");
             PrintWriter out = new PrintWriter(outFile);
            
            // Also could be written as follows on one line
            // Printwriter out = new PrintWriter(new FileWriter(args[0]));
        
            // Write text to file
            out.println("This is line 1");
            out.println("This is line 2");
            out.print("This is line3 part 1, ");
            out.println("this is line 3 part 2");
	}
}